package org.apache.dubbo.springboot.demo.consumer.controller;


import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.springboot.demo.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class testController {
    @DubboReference
    private DemoService demoService;


    @GetMapping("/test01")
    public String getDemo01(@RequestParam("name") String name){
        String s = demoService.sayHello(name);
        return s;
    }
}
